package com.zhidian.edm.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author sl
 * @since 2025-09-18
 */
@Data
@TableName("sys_menu")
public class SysMenuPO implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private Long parentId;

    private String name;

    private String path;

    private String component;

    private String icon;

    private Integer sort;

    private Boolean visible;

    /**
     * 0:目录 1:菜单 2:按钮
     */
    private Integer menuType;

    private Date createdTime;

    private String permission;

    private String routerName;

    private Date updatedTime;

    // 0 不缓存 1 缓存
    private Integer cache;
}
